'''
Created on Nov 21, 2011

@author: ctester
'''


import logging
import appscript
import aem
from appscript import *
import re
import os
import random

from time import strftime, gmtime

print strftime('%Y-%m-%d_%H-%M-%S', gmtime())
print random.randint(100, 999)


home = os.getenv("HOME")
print 'isfile', os.path.exists(home + '/__TA__/results/Automation Results.plist')
os.system('ls ' + home + '/__TA__/results')



logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('asdf')


logger.error('hello world')



ptn = re.compile('9')

m = ptn.search('aaabbb')

if m == None:
    print 'None'


ts = None
def ttt():
    print 'ts', ts
    
def main():
    ts = 'asdfasdf'
    ttt()
    
    
#main()


sss = 'mv ' + home + '/__TA__/tmp/Automation\ Results.plist ' + home + '/__TA__/results/' + 'asdfasdf.plist'
os.system(sss)